package com.linq.cool.beauty.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.linq.cool.beauty.domain.BeautyRefund;
import com.linq.cool.beauty.dto.BeautyRefundQueryDTO;
import com.linq.cool.beauty.vo.statistical.MonthlyRefundVO;

/**
 * @Author: yqlin
 * @Date: 2021/2/3 19:27
 * @Description:
 * @Version: 1.0.0
 */

public interface BeautyRefundService extends IService<BeautyRefund> {
    /**
     * 退费成功之后更改状态
     *
     * @param refundId
     * @param backPlatformId
     * @param backType       退费类型
     */
    void refundSuccess(String refundId, String backPlatformId, Integer backType);

    /**
     * 条件分页查询退费订单信息
     *
     * @param page
     * @param dto
     *
     * @return
     */
    IPage<BeautyRefund> listByPage(IPage<BeautyRefund> page, BeautyRefundQueryDTO dto);

    /**
     * 先查询近6个月的月份的退费统计
     *
     * @return
     */
    MonthlyRefundVO statisticalMonthlyRefund();

}
